package com.sskj.uboex.ui.activity;


import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.alibaba.android.arouter.launcher.ARouter;
import com.sskj.common.util.ClickUtil;
import com.sskj.lib.Constans;
import com.sskj.lib.RConfig;
import com.sskj.lib.base.BaseActivity;
import com.sskj.uboex.R;
import com.sskj.uboex.presenter.MsgCenterActivityPresenter;

import butterknife.BindView;

@Route(path = RConfig.APP_MSG_CENTER)//消息中心
public class MsgCenterActivity extends BaseActivity<MsgCenterActivityPresenter> {
    @BindView(R.id.tvRight)
    TextView tvRight;
    @BindView(R.id.ivIcon1)
    ImageView ivIcon1;
    @BindView(R.id.tvTitle1)
    TextView tvTitle1;
    @BindView(R.id.tvContent1)
    TextView tvContent1;
    @BindView(R.id.rlFirst)
    RelativeLayout rlFirst;
    @BindView(R.id.ivIcon2)
    ImageView ivIcon2;
    @BindView(R.id.tvTitle2)
    TextView tvTitle2;
    @BindView(R.id.tvContent2)
    TextView tvContent2;
    @BindView(R.id.rlSecond)
    RelativeLayout rlSecond;
    @BindView(R.id.ivIcon3)
    ImageView ivIcon3;
    @BindView(R.id.tvTitle3)
    TextView tvTitle3;
    @BindView(R.id.tvContent3)
    TextView tvContent3;
    @BindView(R.id.rlThird)
    RelativeLayout rlThird;

    @Override
    protected int getLayoutResId() {
        return R.layout.app_activity_msg_center;
    }

    @Override
    public MsgCenterActivityPresenter getPresenter() {
        return new MsgCenterActivityPresenter();
    }

    @Override
    protected void initView() {
        ClickUtil.click(tvRight, () -> {

        });
        ClickUtil.click(rlFirst, () -> {
            ARouter.getInstance().build(RConfig.APP_MSG).withInt(Constans.TYPE, 0).navigation();
        });
        ClickUtil.click(rlSecond, () -> {
            ARouter.getInstance().build(RConfig.APP_MSG).withInt(Constans.TYPE, 1).navigation();

        });
        ClickUtil.click(rlThird, () -> {
            ARouter.getInstance().build(RConfig.APP_MSG).withInt(Constans.TYPE, 2).navigation();

        });

    }


}
